using System;
using System.Linq;
using System.Text.Json;
using System.Threading.Tasks;
using K9Nano.AspNetCore.Startup;
using Microsoft.Extensions.Hosting;

namespace K9Cloud.Admin
{
    public class Program
    {
        public static async Task Main(string[] args)
        {
            AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true);

            await DefaultHostBuilder.RunAsync(CreateHostBuilder(args));
        }

        public static IHostBuilder CreateHostBuilder(string[] args)
            => DefaultHostBuilder.CreateHostBuilder<Startup>(args);
    }
}
